>I'm working 12 hrs a day at my day job lately. Yuk. But I'm still working on
>the Ultima Editor (cause it's fun). Please o please tell me more about the
>TLKS resource.

Okay, lessee here ... Another fairly goofy data structure.  Because the
"TLK" entry of a townsperson is the low nibble of a byte in the MONS data,
there are only 15 potentially usable entries in a TLKS table.  A MONS "TLK"
reference of 0 indicates no TLK entry is to be used at all ("GOOD GODDAMN
DAY!").  For dungeons, only #s 1-8 can be used -- for these, the "misty
writings" on each level are just <TLK entry=dungeon level>, i.e. only one
Misty Writing per level.

In the TLKS table, every entry starts with a 0x00; if you want to get to
TLK entry 4, you need to find the 4th 0x00 in the table.  Everything
between this 0x00 and the next 0x00 is the TLK entry.

The entry is straightforward ASCII text with two exceptions:
1) the high bit is set [Apple //-ism].  Which also worked out nicely to
keep people
   from reading the TLKS data with ResEdit.  Your editor doesn't need to
make the high
   bit set on edited entries; Ultima III strips the high bit when using the
entries
   regardless.
2) 0xFF means carriage return.  D'oh!  What the hell was Garriott thinking?
Anyway,
   if you have time you will probably want to let people type whatever they
want, and
   your editor would force it to word wrap at 16 columns by putting in carriage
   returns.  Text that runs past the 16th column won't wrap, it'll be
displayed on a
   computer screen somewhere in India instead.

Only the first 256 bytes of TLKS tables are used.  I 'spose you'd just have
to add everything up when they go to close the editing window and whine at
them if they've gone over.  Oh, and you *can* use lower case, UNLIKE
RICHARD GARRIOTT.

>How was MacWorld?

It was cool, but the internet hype was pretty ridiculous.  ARDI was there
and had Ultima III running on a Pentium clone to demonstrate their Mac
emulator, Executor.  Hyuk.  BTW, I hope that if you ever give up on the
Ultima III Editor (god forbid!) that you'll pass the source on to someone
else willing to take up the task.  I see too many
would-be-cool-but-it-ain't-finished projects filling the archives.

seeya

----
Leon McNeill (Beastie)     | beastie@lairware.com
See my web page-           | URL: http://www.lairware.com/~beastie
